package edu.whu.webgis.service.impl;

import edu.whu.webgis.entity.Collection;
import edu.whu.webgis.mapper.CollectionMapper;
import edu.whu.webgis.service.ICollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CollectionServiceImpl implements ICollectionService {
    @Autowired
    CollectionMapper mapper;
    @Override
    public Boolean InsertCollection(Collection collection) {
        try {
            mapper.insert(collection);
            return true;
        }catch (Exception e){
            return false;
        }
    }
}
